package com.example.prettyprint;

import java.io.FileInputStream;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

public class EnumeratePolygonMain
{
	public static void main(String args[])
	{
		SAXParserFactory factory = SAXParserFactory.newInstance();
		String xmlFilePath = args[0];
		String elementQName = args[1];
		String searchInElementQName = args[2];
		
		try {
			SAXParser saxParser = factory.newSAXParser();
			saxParser.parse(new FileInputStream(xmlFilePath), new EnumerateElementsOfPolygon(elementQName, searchInElementQName));
		} catch (Exception e) {
			System.out.println(e);
		}
	}
}
